//
//  UIButton+imagetitle.h
//
//  Created by wangjian on 2016/11/24.
//  Copyright © 2016年 wangjian. All rights reserved.
//

#import <UIKit/UIKit.h>
typedef NS_ENUM(NSUInteger, MKButtonEdgeInsetsStyle) {
    MKButtonEdgeInsetsStyleTop, // image在上，label在下
    MKButtonEdgeInsetsStyleLeft, // image在左，label在右
    MKButtonEdgeInsetsStyleBottom, // image在下，label在上
    MKButtonEdgeInsetsStyleRight // image在右，label在左
};
@interface UIButton (imagetitle)
- (void)layoutButtonWithEdgeInsetsStyle:(MKButtonEdgeInsetsStyle)style
                        imageTitleSpace:(CGFloat)space;



//首页界面button封装
+(UIButton *)setTite:(NSString *)titele
       setTitleColor:(UIColor *)color
HighlightedsetTitleColor:(UIColor *)hcolor
     backgroundColor:(UIColor *)UIColor
             setFont:(NSInteger )font
     setcornerRadius:(NSInteger )radius;



@end
